<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %> 
<jsp:include page="include/directive.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="css/Style002.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="js/GDJC002JS.js"></script>
	<title>DVD情報編集</title>
</head>
<body>
	<jsp:include page="include/header.jsp"></jsp:include>
    <div id="main">
 	<jsp:include page="include/left.jsp"></jsp:include>
   	<div id="context">
   	<form method="post" action="GDJC002.do?action=${param.stateFlag}" enctype="multipart/form-data">
    		<div class="caption">DVD情報編集</div>
    		<div class="showimg">
    			<img id="preview" src="${TDvd.FImgPath}" width="150px" height="100px"/>
    		</div>
    		<div class="line">
	    		<div class="left">タイトル</div>
	    		<div class="right"><input type="text" id="FDvdTitle" name="FDvdTitle" style="width:100px" value="${TDvd.FDvdTitle}"></input></div>
	    		
    		</div>
    		<div class="line">
	    		<div class="left">制作年</div>
	    		<div class="right"><input type="text" id="FYear" name="FYear" style="width:100px;" value="${TDvd.FYear }"></input> 年</div>
    		</div>
    		<div class="line">
	    		<div class="left">タイプ</div>
	    		<div class="right"><input type="text" id="FType" name="FType" value="${TDvd.FType }"></input></div>
    		</div>
    		<div class="line">
	    		<div class="left">制作国</div>
	    		<div class="right"><input type="text" id="FCountry" name="FCountry" value="${TDvd.FCountry}"></input></div>
    		</div>
    		<div class="line">
	    		<div class="left">価額</div>
	    		<div class="right"><input type="text" id="FPrice" style="width:100px;" name="FPrice" value="${TDvd.FPrice}"></input> 円</div>
    		</div>
    		<div class="line">
	    		<div class="left">ポスター</div>
	    		<div class="right" style="padding-top:2px;padding-bottom:2px;">
	    			<input type="file" onchange="onFileSelected(this)" id="FImgFile" name="FImgFile" width="600px"/>
	    			<input type="hidden" id="FImgPath" name="FImgPath" value="${TDvd.FImgPath}"/>
	    		</div>
    		</div>
    		
    		<div class="line">
	    		<div class="left">監督</div>
	    		<div class="right"><input type="text" class="input" id="FDirector" name="FDirector" value="${TDvd.FDirector}"/></div>
    		</div>
    		<div class="line">
	    		<div class="left">出演</div>
	    		<div class="right"><input type="text" name="FActor" id="FActor" class="input" value="${TDvd.FActor}"/></div>
    		</div>
    		<div class="line">
	    		<div class="left" style="height:121px;">内容紹介</div>
	    		<div class="right" style="height:122px;">
	    			<textarea cols="35" rows="5" name="FMemo" id="FMemo">${TDvd.FMemo}</textarea>
	    			<input type="hidden" name="FDvdId" value="${TDvd.FDvdId}"/>
	    			<input type="hidden" name="FCrtDt" value="${TDvd.FCrtDt}"/>
	    		</div>
    		</div>
    		<div class="line">
				<div style="text-align:center;">
					<input type="submit" onclick="return validateDvdInfo()" class="button" value=" 登　録 "/>&nbsp;&nbsp;
					<input type="button" onclick="GDJC002reset()" class="button" value=" リセット "/>
				</div>
    		</div>
    		<div class="line" style="text-align:center"> 
				<span id="lblMessage" style="color:Red;margin:auto;text-align:center">&nbsp;</span>
            </div>
        </form>
    	</div><!-- end of content -->
    
    </div><!-- end of main -->
	<jsp:include page="include/footer.jsp"/>
	<script type="text/javascript">
		if("${param.stateFlag}" == "newentry")
		{	
			GDJC002reset();
		}
	</script>
</body>
</html>